package com.lsj.product.service.impl;

import com.lsj.Product.bean.Product;
import com.lsj.product.service.ProductService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
@Service
public class ProductServiceImpl implements ProductService {
    @Override
    public Product getProductById(String id) {
        Product product = new Product();
        product.setId(id);
        product.setName("测试");
        product.setPrice(new BigDecimal(100));
        product.setNum(1);
        return product;
    }
    public Product getProductFromRemote(Long id) {
        Product product = new Product();
        product.setId(id);
    }
}
